import logging

def log_set():
    logging.basicConfig(filename="log.log",
                        filemode="a+",
                        format="%(message)s—%(process)d-%(thread)d- %(levelno)s3",
                        level=logging.DEBUG)